import service from '@/utils/service'
// 登录
export function Login(data) {
  return service({
    url: '/api/system/openapi/ray/auth/login/bypassword',
    method: 'post',
    data,
  })
}
// 发送验证码
export function getPhoneCode(params) {
  return service({
    url: '/api/system/utility/sendsms/validatacode',
    method: 'get',
    params,
  })
}
// 找回密码
export function findPassword(data) {
  return service({
    url: '/api/system/auth/password/find',
    method: 'post',
    data,
  })
}
// 退出登录
export function outLogin(data) {
  return service({
    url: '/api/system/auth/logout',
    method: 'post',
    data,
  })
}
// 注册
export function vitiedCodeRegister(data) {
  return service({
    url: '/api/system/auth/register/mobile/do',
    method: 'post',
    data,
  })
}
// 账号验证码登录
export function loginByvcode(data) {
  return service({
    url: '/api/system/openapi/ray/auth/login/bypassword',
    method: 'post',
    data,
  })
}